
$(function () {
    showtxt();
});

function showtxt() {

    var requestUrl = "../mediumAndLongForecast/gettxt?model="+"meadow";

    $.ajax({
        type: 'Get',
        url: requestUrl,
        dataType: "Json",
        async: true,
        success: function (data) {

            if (data != null )
            {
                $.each(data, function (i, n) {
                    document.getElementById("txt").innerHTML +='<p>'+ n+'</p><br>'
                })
            }
        }
    });

}
